from pydantic import BaseModel, Field


class InChange(BaseModel):
    status: bool = Field(..., description="窗帘的开关状态", example=True)


class OutChange(BaseModel):
    status: bool = Field(..., description="窗帘的开关状态", example=True)
    time: float = Field(..., description="返回的服务器时间", example=1635247642749)


class InSpeed(BaseModel):
    mode: str = Field(..., description="窗帘的开关速度[慢,中,快]", example='慢')


class OutSpeed(BaseModel):
    mode: str = Field(..., description="窗帘的开关速度[慢,中,快]", example='慢')
    time: float = Field(..., description="返回的服务器时间", example=1635247642749)